﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace THE_WIND_RISES.Common.Domans.Produce.DemandPlanning
{
    /// <summary>
    /// 生产任务
    /// </summary>
    public class ProductionTasks:Entity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [Key]
        public int TasksId { get; set; }
        /// <summary>
        /// 任务编码
        /// </summary>
        public string TasksCode { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TasksName { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public int TasksType {  get; set; }
        /// <summary>
        /// 任务状态
        /// </summary>
        public int TasksState { get; set; }
        /// <summary>
        /// 物料选择
        /// </summary>
        public int ChooseId { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>工单执行进度 假的外键 SpecsUnitId 规格单位
        public int MaterialSpecsId { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public int ItemUnitId { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        public int ProductionNum { get; set; }
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime CompletionTime { get; set; }
        /// <summary>
        /// 物料清单编码
        /// </summary>
        public string ItemManifestCode { get; set; }

        /// <summary>
        /// 物料清单版本
        /// </summary>
        public string ItemManifestVersion { get; set; }
        /// <summary>
        /// 工艺编码
        /// </summary>
        public string ProcessRouteNo { get; set; }
        /// <summary>
        /// 工艺版本
        /// </summary>
        public string ProcessVersion { get; set; }
        /// <summary>
        /// 生产入库数量
        /// </summary>
        public int InboundQuantity { get; set; }
        /// <summary>
        /// 生产退货数量
        /// </summary>
        public int NumberReturns { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string Peole { get; set; }
        /// <summary>
        /// 制单部门
        /// </summary>
        public int DepartmentId { get; set; }
    }
}
